package com.linwen.javase.desgin_pattern.create.factory;

/**
 * @ClassName Car
 * @Description
 * @Author lin
 * @Date 2022/6/12 下午11:32
 * @Version V1.0
 */
public abstract class Car {
    private final String name;

    public Car(String name){
        this.name = name;
    }

    @Override
    public String toString() {
        return name+"@"+hashCode();
    }
}